package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WrintStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./fos.txt",true);
        String line = "艾欧里亚 昂扬不灭。诺克萨斯，正在崛起。德玛西亚 武运必争\n";

        byte[] data = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);

        line = "以敌人之血祭我大诺克萨斯\n";
        byte[] data1 = line.getBytes(StandardCharsets.UTF_8);
        fos.write(data1);
        System.out.println("写出完毕");
        fos.close();
    }
}
